import { request } from "@/utils/request002";

// 获取全部课程列表
export const queryCurList = () => {
  return request({
    url: '/public/queryCurList',
    method: 'GET'
  })
}

// 获取教师信息列表
export const queryTeaList = () => {
  return request({
    url: '/public/queryTeaList',
    method: 'GET'
  })
}

// 获取周次列表信息
export const queryWeeklyList = () => {
  return request({
    url: '/public/queryWeeklyList',
    method: 'GET'
  })
}

// 获取教室信息列表
export const queryClassRoomList = () => {
  return request({
    url: '/public/queryClassRoomList',
    method: 'GET'
  })
}

// 获取每天课次列表
export const queryDayTimeList = () => {
  return request({
    url: '/public/queryDayTimeList',
    method: 'GET'
  })
}

// 获取现在已经排课的课程
export const queryEnableCourse = () => {
  return request({
    url: '/public/queryPlanCourses',
    method: 'GET'
  })
}

// 获取全部学生下拉列表
export const queryAllStuList = () => {
  return request({
    url: '/public/queryStuSelect',
    method: 'GET'
  })
}

// 获取动态路由
export const getRouter = (data: any) => {
  return request({
    url: '/public/getRouter',
    method: 'POST',
    data
  })
}

// 课程表
export const queryClassTimeList = (data: any) => {
  return request({
    url: '/teaching/coursePlan/queryClassTime',
    method: 'POST',
    data
  })
}

// 已经排课的教师
export const queryClassPlanTeaList = () => {
  return request({
    url: '/teaching/queryTeacherList',
    method: 'GET'
  })
}

// 获取当前登录用户信息
export const getOnlineInfo = (data: any) => {
  return request({
    url: '/public/getUserInfo',
    method: 'POST',
    data
  })
}

// 更新当前登录用户信息
export const updateUserInfo = (data: any) => {
  return request({
    url: '/public/updateInfo',
    method: 'POST',
    data
  })
}

// 修改密码
export const editOnlinePass = (data: any) => {
  return request({
    url: '/public/editPass',
    method: 'POST',
    data
  })
}

// 教师总数
export const querySteacherNum = () => {
  return request({
    url: '/public/teacherNum',
    method: 'GET'
  })
}

// 课程总数
export const queryCourseNum = () => {
  return request({
    url: '/public/courseNum',
    method: 'GET'
  })
}

// 订单总数
export const queryOrderNum = () => {
  return request({
    url: '/public/orderNum',
    method: 'GET'
  })
}

// 学员总数
export const queryStudentNum = () => {
  return request({
    url: '/public/studentNum',
    method: 'GET'
  })
}